package com.byd.model;

import com.byd.utils.Lg;

public class EventBus {
	private static EventBus sEventBus = null;

	private EventBus() {
	}
	
	public synchronized static void init() {
		if(sEventBus == null) {
			sEventBus = new EventBus();
		}
	}

	public static EventBus check() {
		return sEventBus;
	}

	public static void release() {
		sEventBus = null;
	}

	@Override
	protected void finalize() throws Throwable {
		Lg.i("finalize: " + toString());
		super.finalize();
	}
}
